//
//  LoginInfoModel.swift
//  ezyform
//
//  Created by FengMoennig on 12/28/15.
//  Copyright © 2015 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit
import HandyJSON
import SDWebImage
class LoginInfoModel: NSObject, HandyJSON {
    var email :String = ""
    var password : String = ""
    var newPassword : String = ""
    var access_token : String = ""
    var currentPVDId : String!
    var signaturesAndPanelNumbersDirPath: String = ""
    var panelNumberImagesDirPath: String = ""
    var checkListFolderPath: String = ""
    var checkListFilePath: String = ""
    
    var fullName:String = ""
    //用于Me中的版本更新，没网络也默认为The Latest Version
    var appVersionInfo: String = APPConfig.DefaultVersionUpdateTitle
    //
    var accreditedNumber: String = ""
    
    var saaNumber : String = ""
    
    @objc dynamic var avatarURLStr: String = ""
    var fcmToken: String = ""
    //新旧协议共用
    var currentSignatureType: SignatureType = .None
    var signatureInfoModel = SignatureInfoModel()
    //True表示点击消息通知启动的APP，需要再APP完全启动后处理消息通知
    var launchAPPFromNotification: Bool = false
    //远程通知xin
    var remoteNotification: Notification!
    @objc dynamic var unReadNotificationCount: Int = 0
    var popNotificationList = [NotificationPushModel]()//缓存连续收到多个pop up的通知，看完一个再打开另外一个

    var currentLoginMethod: LoginMethodOperation = .password
    var designer: Bool = false//是否是designer
    var installer: Bool = false//是否是installer
    var plumber: Bool = false//是否是plumber
    var plumber_licenses: String = ""//plumer_licenses
    
    /// begin
    var effective_date = ""
    
    @objc dynamic var app_create_job: Bool = false//是否有创作job的权限
    required override init(){
        
    }
}
